package com.tanhua.server.controller;

import com.tanhua.server.service.TodayBestService;
import com.tanhua.server.vo.TodayBest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

public class TodyBestController {
    @RestController
    @RequestMapping("tanhua")
    public class TodayBestController {

        @Autowired
        private TodayBestService todayBestService;

        /**
         * 查询今日佳人
         *
         * @param token
         * @return
         */
        @GetMapping("todayBest")
        public TodayBest queryTodayBest(@RequestHeader("Authorization") String token) {
            return this.todayBestService.queryTodayBest(token);
        }

    }
}
